import { Button } from "antd";
import style from "./index.module.less";
import { useRouter } from "@/hooks/useRouter";

export default function () {
  const { navigate } = useRouter();
  const handlerNav = (path: string) => {
    navigate(path);
  };

  return (
    <div className={style.IndexBox}>
      <div onClick={() => handlerNav("/Number")}>数字</div>
      <div onClick={() => handlerNav("/Chart")}>图形</div>
      {/* <div onClick={() => handlerNav("/Sudu")}>数独</div> */}
    </div>
  );
}
